package com.boomcat.boomcat.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.boomcat.boomcat.domain.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDao extends BaseMapper<Order> {

//    @Insert("insert into tb_order(id,user_id,expert_name,expert_id,date) values(#{id},#{userId},#{expertName},#{expertId},#{date})")
//    void insertOrder(Order order);

@Select("select * from tb_order where user_id=#{userId}")
    List<Order> select(Long userId);
}
